package com.demo.service;

import com.demo.entity.Permission;
import com.demo.vo.PermissionVo;

import java.util.List;

public interface IPermissionService {
    /**
     * 分页查询:关键字，手机号、字段升降序、每页显示大小，某一页
     * 默认进行每页15个显示
     *
     * @param user
     * @return
     */
     List<Permission> queryByPage(PermissionVo user);

    int queryCount(PermissionVo user);

    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    List<Permission> getPermissionByUserID(int userid);

}
